package com.ocgs.code.service;

import com.ocgs.base.core.exception.BaseServiceException;
import com.ocgs.code.model.Code;
import com.ocgs.code.model.CodeKey;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface CodeService {

    int deleteByPrimaryKey(CodeKey codeKey) throws BaseServiceException;

    int insert(Code record) throws BaseServiceException;

    int insertSelective(Code record) throws BaseServiceException;

    Code selectByPrimaryKey(CodeKey codeKey) throws BaseServiceException;

    int updateByPrimaryKeySelective(Code record) throws BaseServiceException;

    int updateByPrimaryKeyWithBLOBs(Code record) throws BaseServiceException;

    int updateByPrimaryKey(Code record) throws BaseServiceException;

    List<Code> findCodeList(String codeTypeId) throws BaseServiceException;

    List<Code> findChildCodeList(String parentCodeTypeId,String parentCodeId) throws BaseServiceException;

    String retrieveAddress(String municipioId,String townId,String villageId) throws BaseServiceException;
}
